const Router = require('koa-router')
const router = new Router({ prefix: '/domain' })

router.get('/', async (ctx, next) => {
  ctx.body = { code: 200, data: 'get /domain' }
  await next()
})

router.post('/', async (ctx, next) => {
  ctx.body = { code: 200, data: 'post /domain' }
  await next()
})

router.put('/', async (ctx, next) => {
  ctx.body = { code: 200, data: 'put /domain' }
  await next()
})

router.delete('/:id', async (ctx, next) => {
  ctx.body = { code: 200, data: 'delete /domain/:id' }
  await next()
})

module.exports = router
